package com.xiaolun.factory.method;


/**
 * @Author 硕鼠
 * @Date 2020/5/21 21:45
 * @Version 1.0
 * @Description 消费者
 */
public class Consume {
    public static void main(String[] args) {
        Car car = new WuLingFactory().getCar();
        Car car2 = new TeslaFactory().getCar();

        car.name();
        car2.name();
    }
}
